﻿<!DOCTYPE html>
<html>
<head>
    <title>CGI</title>
</head>
<body>
    <h1>Our Page</h1>
    <script>
        //01

        console.log(location.href);
        //console.log(location.host);
        //console.log(location.port);
        //console.log(location.protocol);



        //02 confirm
        /*
        //change the URL
        location.assign('http://www.cgi.com');
        */
    </script>
</body>
</html>